<?php
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# 
#         http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
if(!class_exists('WF')){
    require_once(dirname(__FILE__).'/../../../class/init.php');
}
$ret = array(
        'threshold' => 'ALL',
        'rootLogger' => array(
            'level' => WF::getConfigFactory()->getConfig()->getDebugLevel(),
            'appenders' => array('default'),
        ),
        'loggers' => array(
            'dev' => array(
                'level' => 'DEBUG',
                'appenders' => array('default'),
            ),
        ),
        'appenders' => array(
            'default' => array(
                'class' => 'LoggerAppenderRollingFile',
                'file' => WF::getConfigFactory()->getConfig()->getDebugDir().WF::getConfigFactory()->getConfig()->getUpgradeWFDebugLogname().'.'.WF::getConfigFactory()->getConfig()->getDebugType(),
                'maxFileSize' => WF::getConfigFactory()->getConfig()->getDebugSize(),
                'maxBackupIndex' => WF::getConfigFactory()->getConfig()->getDebugBackup(),
                'layout' => array(
                    'class' => 'LoggerLayoutPattern',
        			'conversionPattern' => "%d{ISO8601},%p,%X{session_id},%X{user_id},%m%n"
                ),
            )
        ),
    );
return $ret;